import request from '@/http/request'
// 审批管理列表查询
export const $getActivityExamineList = (params:any) => {
    return request.request({
      url: '/api/auditRecords/getList',
      method: 'post',
      data: params
    })
  }

//   出资方列表查询
export const $getInvestorList = (params:any) => {
    return request.request({
      url: '/api/ifCode',
      method: 'get',
      params: params
    })
  }

  // 卡券回执信息填写
  export const $getCouponInfo = (params:any) => {
    return request.request({
      url: '/api/auditRecords/couponReceiptInfo',
      method: 'post',
      data: params
    })
  }
// 提交审批
export const $submitAudit = (params:any) => {
    return request.request({
      url: '/api/auditRecords/audit',
      method: 'post',
      data: params
    })
  }

  /** 导出文件地址 **/
export const exportExcelUrl = {
    statistic: '/api/statistic/export',
    mch: '/api/mchInfo/exportExcel',
    license: '/api/exportExcel/exportWord', // 设置函
    canUsedMch: '/api/exportExcel/exportWechat',  // 设置函可核销商户
  }

  /** 导出功能 **/
  export function $exportExcel (url, params, method = 'GET') {
    return request.exportExcel(url, params, method)
  }

    // 下载设置函
export const $downLetter = (data:any) => {
  return request.request({
    url: '/api/auditRecords/downLetter',
    method: 'post',
    data: data
  })
}